package cn.hd.dao;

import cn.hd.entity.Fileupload;
import cn.hd.entity.FileuploadLicense;

import java.util.List;
import java.util.Map;

public interface FileuploadDao {
    //多条件分页查询
    public List<Fileupload> selectAllFileupload(Map map);

    //添加资质文件
    public int addFileupload(Fileupload fileupload);

    //根据编号查询资质文件
    public Fileupload selectFileuploadById(long fileid);

    //修改资质文件
    public int updateFileupload(Fileupload fileupload);

    //删除资质文件
    public int deleteFileupload(long fileid);

    //删除之前查询该文件是否被占用
    public FileuploadLicense selectFileuploadLicenseByFid(long fileid);


}
